﻿using System.ComponentModel.DataAnnotations;
using MediatR;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Supplier
{
    /// <summary>
    /// 供应商信息更新命令
    /// </summary>
    public class UpdateSupplierCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanName { get; set; }

        /// <summary>
        /// 公司地址(文本框)
        /// </summary>
        public string CompanAddr { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Desc { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        public string Tel { get; set; }

        /// <summary>
        /// 社会信用代码
        /// </summary>
        public string SocialCreditCode { get; set; }


        /// <summary>
        /// 仓库id
        /// </summary>
        public int WarehouseId { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(50)]
        public string? UpdateName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; } = DateTime.Now;
    }
}
